package com.dyc.caradvertisting.ui.fmt.bind.vh;

import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import com.dyc.caradvertisting.R;
import com.dyc.caradvertisting.bean.resp.SettBean;
import com.njh.tools.base.BaseViewHolder;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by niejiahuan on 16/11/21.
 */

public class SetListVH extends BaseViewHolder<SettBean> {
    @BindView(R.id.img_car)
    ImageView imgCar;
    @BindView(R.id.btn_set_det)
    Button btnSetDet;
    @BindView(R.id.btn_set_bind)
    Button btnSetBind;
    @BindView(R.id.tv_cp)
    TextView tvCp;

    public SetListVH(View v) {
        super(v);
    }

    @Override
    public int getType() {
        return R.layout.itme_set_list;
    }

    @Override
    public void onBindViewHolder(View view, SettBean obj) {
        ButterKnife.bind(mContext,view);
        setTextValue(tvCp,obj.getCarFirst()+obj.getCarNum());
    }

    @OnClick({R.id.btn_set_det, R.id.btn_set_bind})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.btn_set_det:
                break;
            case R.id.btn_set_bind:
                break;
        }
    }
}
